package core.data
{
	[Bindable]
	public class DataBase
	{
		public function DataBase(lock:Lock)
		{
			if(lock == null)
			{
				throw new Error("DataBase can not be init");
			}
		}
		
		private static var _db:DataBase = null;
		public static function getInstance():DataBase
		{
			if(_db == null)
			{
				_db = new DataBase(new Lock());
			}
			return _db;
		}
		
		public var debug:Boolean = false;
		
		public var loginUser:Player = new Player();
		
		public var roomList:Object = {};
		
		public var userList:Object = {};
		
		public var tableList:Object = {};
		
		public var timeAll:int = 1000000;//ms
	}
}
class Lock{}